//
//  ThreeViewController.m
//  TNPanNavigationControllerDemo
//
//  Created by CaoXuan on 2017/7/15.
//  Copyright © 2017年 Tenney. All rights reserved.
//

#import "ThreeViewController.h"

#define kScreenBounds ([[UIScreen mainScreen] bounds])
#define kScreenWidth (kScreenBounds.size.width)
#define kScreenHeight (kScreenBounds.size.height)

@interface ThreeViewController ()

@end

@implementation ThreeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.title = @"滚动按钮";
    
    self.view.backgroundColor = [UIColor blueColor];
    
    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0,200, kScreenWidth, 200)];
    scrollView.backgroundColor = [UIColor orangeColor];
    
    [self.view addSubview:scrollView];
    
    scrollView.contentSize = CGSizeMake(kScreenWidth * 3, 200);
    
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(kScreenWidth * 1, 0, 200, 50)];
    view.backgroundColor = [UIColor purpleColor];
    [scrollView addSubview:view];
}


@end
